package com.fengmi.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResoultVo<T> {
    //标志位
    @NonNull
    private boolean success;
    @NonNull
    private String msg;

    private T data;

    private String code;

    public ResoultVo(@NonNull boolean success, @NonNull String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
    public ResoultVo(@NonNull boolean success, @NonNull String msg) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}
